import request from '../request/request'

//按需导出每个请求，称这种请求为每个api
// export const TopicApi = (params) => request.get('/topic/list', { params })

//登录api
export const LoginApi = (params) => request.post('/login', params)

//物流单列表
// export const OrderApi = (params) => request.get('/api/star', { params })

//全部订单
export const AllOrderApi = (params) => request.get('/order/v1/list', { params })

//待发货单
export const WaitOrderApi = (params) => request.get('/order/v1/list/1', { params })

//待收货单
export const receptOrderApi = (params) => request.get('/order/v1/list/2', { params })

//详情页
export const DetailApi = (params) => request.get('/order/v1/orderInfo/' + params)

//发货
export const SendApi = (params) => request.post('/order/v1/send', params)

//确认收货
export const SureShouhuoApi = (params) => request.post('/order/v1/confirmReceipt/' + params)

//待评价单
export const PingjiaApi = (params) => request.get('/order/v1/list/3', { params })

//评价详情
export const PingjiaDetailApi = (params) => request.get('/order/v1/evaluateInfo/' + params )

//pingjia 
export const dingdanApi = (params) => request.post('/order/v1/evaluate', params)

//用户信息
export const userInfoApi = (params) => request.get('/users/list', { params })

//用户信息详情
export const userInfoDetailApi = (params) => request.get('/users/info', { params })

//版本信息
export const versionApi = (params) => request.get('/users/version', { params })

//消息中心列表
export const newsCenterListApi = (params) => request.get('/api/message', { params })

//消息中心详情
export const newsCenterDetailApi = (params) => request.get('/api/message/' + params)

//消息已读
export const HasReadApi = (params) => request.put('/api/message/updates',params)

//物流单列表
export const WuLiuListApi = (params) => request.get('/api/star',params)

//物流单评价
export const WuliuPingjia = (params) => request.put('/api/star/',params)

//物流单评价详情
// export const WuliuDetailApi = (params) => request.get('/api/star/'+params)

//客户列表信息
export const KehuInfoApi = (params) => request.get('/api/cust', {params})


//获取客户示图
export const KehuShituApi = (params) => request.post('/api/cust/'+params)

//获取客户详情
export const KehuDetail = (params) => request.get('/api/cust/'+params)

//走访列表信息
export const ZoufangListApi = (params) => request.get('/api/visit', {params})

